package com.meida.module.bus.provider.handler;

import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.interceptor.SaveInterceptor;
import com.meida.common.mybatis.query.CriteriaSave;
import com.meida.module.bus.client.entity.BusReport;
import com.meida.module.bus.provider.api.service.SyncOAService;
import com.meida.module.bus.provider.service.BusReportService;
import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component(value = "busReportSaveHandler")
public class BusReportSaveHandler implements SaveInterceptor<BusReport> {
    @Autowired
    BusReportService busReportService;
    @Autowired
    SyncOAService syncOAService;


    @Override
    public void prepare(CriteriaSave criteriaSave, EntityMap entityMap, BusReport busReport) {

    }

    @SneakyThrows
    @Override
    public void complete(CriteriaSave cs, EntityMap params, BusReport busReport) {
        //Integer reportType = busReport.getReportType();
        //busReportService.saveBusReportAfter(params, reportType);
    }

}
